import request from '../request'
import qs from 'qs'

export default {
    /**
     *  向后端传递请求参数是json,通过qs转换为参数格式,后端不需要@RequestBody注解接收参数
     */
    clientList(json) {
        return request({
            url:"carservice/carClient/carClientList",
            method: "post",
            data: qs.stringify(json),
        });
    },
    cityList() {
        return request({
            url:"carservice/city/cityMenu",
            method: "get",
            data: null,
        });
    },
    saveClient(json) {
        return request({
            url:"carservice/carClient/save",
            method: "post",
            data: qs.stringify(json),
        });
    },
    vipList() {
        return request({
            url:"carservice/carClient/vipList",
            method: "post",
            data: null,
        });
    }


}